﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class showzh : System.Web.UI.Page
{
    AccessDAO dao = new AccessDAO();
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!Page.IsPostBack)
        {
            string s3 = "select * from billInfo where id=1";
            DataSet ds3 = dao.getDs(s3);
            this.dlProdu.DataSource = ds3;
            this.dlProdu.DataBind();

            int id = Convert.ToInt32(Request.QueryString["id"].ToString());
            string sl = "update zhanhui set num=num+1 where id=" + id;
            dao.getComm(sl);

            string ss = "select * from zhanhui where id=" + id;
            DataSet ds = dao.getDs(ss);
            this.reGsNew.DataSource = ds;
            this.reGsNew.DataBind();

            //string name = Request.QueryString["name"].ToString();
            //string s2 = "select zhanhuiInfo.Name as name,zhanhuiInfo.id as id from newMessInfo,newType where newType.id=newMessInfo.typeId and newType.name='" + name + "'";
            //DataSet ds2 = dao.getDs(s2);
            //this.news.DataSource = ds2;
            //this.news.DataBind();
        }
    }
}
